<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绝对定位</title>
    <style>
        .father {
            /* position:absolute; */
            width: 500px;
            height: 500px;
            background-color:black;
        }
        /* 有父亲，但是没有定位所以父盒子没有子盒子，只要有position属性，随便一个值，就会有子盒子 */
        .son {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 200px;
            height: 200px;
            background-color: aqua;
        }
    </style>
</head>
<body>
    <!-- <div class="son"></div> -->
    <div class="father"><div class="son"></div></div>
    <img src="img/绝对定位.png" alt="">
</body>
</html>